#ifndef		OPTIONMENU_HH__
# define	OPTIONMENU_HH__

# include	<vector>
# include	<iostream>
# include	<SFML/Graphics.hpp>
# include	"Icontext.hh"
# include	"GObject.hh"
# include	"GUI.hh"
# include	"Data.hh"

class			OptionMenu : public Icontext
{
public:
  OptionMenu(sf::RenderWindow&, IGUI::e_context&, sf::Event&, Gomoku::Data&);
  ~OptionMenu(void);
  virtual void		run(void);

private:
  virtual void		gere_key(void);
  virtual void		mouse(void);
  virtual void		resized(void);
  void			mouser(void);
  void			mouseHover(void);
  void			setInfo(void);
  void			addPolice(std::string, std::string, int);
  Gomoku::Data		&info;
  IGUI::e_context	&focus;
  std::map<sf::Event::EventType, void (OptionMenu::*)(void)> action;
  sf::RenderWindow	&App;
  sf::Event		&Event;
  const sf::Input&	Input;
  std::vector<GObject*>	items;
  std::vector<GObject*>	hbutton;
  std::vector<std::string>	TtfFont;
  std::vector<std::string>	TtfName;
  std::vector<int>	TtfSize;
  sf::Image		coche;
  sf::Image		bgm;
  sf::Image		lb;
  sf::Image		rb;
  sf::String		str;
  int			wait;
  int			idFont;
};

#endif		/*!OPTIONMENU_HH__*/
